net/netip.Prefix.ip (field)
21 uses
net/netip (current package)
netip.go#L1225: ip Addr
netip.go#L1246: ip: ip.withoutZone(),
netip.go#L1252: func (p Prefix) Addr() Addr { return p.ip }
netip.go#L1267: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1320: m, _ := p.ip.Prefix(p.Bits())
netip.go#L1335: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
netip.go#L1347: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1352: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
netip.go#L1368: if p.ip.Is4() != o.ip.Is4() {
netip.go#L1385: if p, err = p.ip.Prefix(minBits); err != nil {
netip.go#L1388: if o, err = o.ip.Prefix(minBits); err != nil {
netip.go#L1391: return p.ip == o.ip
netip.go#L1406: if p.ip.z == z4 {
netip.go#L1407: b = p.ip.appendTo4(b)
netip.go#L1409: if p.ip.Is4In6() {
netip.go#L1411: b = p.ip.Unmap().appendTo4(b)
netip.go#L1413: b = p.ip.appendTo6(b)
netip.go#L1427: switch p.ip.z {
netip.go#L1481: return p.ip.String() + "/" + itoa.Itoa(p.Bits())
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |